-
Notifications
You must be signed in to change notification settings - Fork 151
docs: Fix spelling errors in Generals/Code/GameEngine/Source comments #2145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
| Filename | Overview |
|---|---|
| Generals/Code/GameEngine/Source/GameLogic/AI/AIDock.cpp | Fixed 18 spelling errors: "extention" -> "extension" |
| Generals/Code/GameEngine/Source/GameClient/InGameUI.cpp | Fixed 13 spelling errors: althought->although, emtpy->empty, wierd->weird, poiner->pointer, contructor->constructor, indicitive->indicative, precendence->precedence |
| Generals/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cpp | Fixed 7 spelling errors in comments |
| Generals/Code/GameEngine/Source/GameClient/GUI/GameWindowManager.cpp | Fixed 7 spelling errors in comments |
| Generals/Code/GameEngine/Source/GameLogic/Object/Object.cpp | Fixed 10 spelling errors in comments |
Sequence Diagram
sequenceDiagram
participant Dev as Developer
participant Files as 90 Source Files
participant Comments as Code Comments
participant Docs as Documentation Quality
Dev->>Files: Identify spelling errors
Files->>Comments: Scan comment text
Comments-->>Dev: Return misspelled words
Note over Comments: definitons, extention, althought,<br/>wierd, emtpy, poiner, etc.
Dev->>Comments: Apply corrections
Comments->>Comments: Replace misspellings
Note over Comments: definitions, extension, although,<br/>weird, empty, pointer, etc.
Comments->>Docs: Improve readability
Docs-->>Dev: Enhanced documentation quality
Generals/Code/GameEngine/Source/Common/System/BuildAssistant.cpp
Outdated
Show resolved
Hide resolved
Generals/Code/GameEngine/Source/GameLogic/Object/Collide/CollideModule.cpp
Outdated
Show resolved
Hide resolved
Generals/Code/GameEngine/Source/GameLogic/Object/Update/EMPUpdate.cpp
Outdated
Show resolved
Hide resolved
xezon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good.
|
I do not understand the splitting of this change. The title claims one thing, but the actual changes files are in all sorts of unrelated folders that do correspond to what the title says. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional Comments (2)
-
Generals/Code/GameEngine/Source/GameLogic/ScriptEngine/ScriptActions.cpp, line 2747 (link)syntax: Method renamed from
setUninterruptabletosetUninterruptibleinAudioEventRTS.hbut call site not updated - will cause compilation error. -
Core/GameEngine/Source/Common/Audio/GameAudio.cpp, line 438 (link)style: Comment still uses old spelling "uninterruptable" - should be updated to "uninterruptible" for consistency with the renamed API.
141 files reviewed, 3 comments
| if (m_ww3dInited) { | ||
| W3DShaderManager::shutdown(); | ||
| WW3D::Set_Device_Resolution(m_actualWinSize.x, m_actualWinSize.y, true); | ||
| W3DShaderManager::init(); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: Removed W3DShaderManager::shutdown() and W3DShaderManager::init() calls - this appears to be unrelated to spelling corrections and may cause shader management issues during resolution changes. Was this shader cleanup intentional or accidentally included in this spelling fix PR?
Prompt To Fix With AI
This is a comment left during a code review.
Path: Generals/Code/Tools/WorldBuilder/src/wbview3d.cpp
Line: 576:578
Comment:
**logic:** Removed `W3DShaderManager::shutdown()` and `W3DShaderManager::init()` calls - this appears to be unrelated to spelling corrections and may cause shader management issues during resolution changes. Was this shader cleanup intentional or accidentally included in this spelling fix PR?
How can I resolve this? If you propose a fix, please make it concise.7f6136c to
2551640
Compare
| if( commandSource == CMD_FROM_PLAYER && (!victim->testScriptStatusBit( OBJECT_STATUS_SCRIPT_TARGETABLE ) || r == ALLIES) ) | ||
| { | ||
| //Unless the object has a map propertly that sets it to be targetable (and not allied), then give up. | ||
| //Unless the object has a map properly that sets it to be targetable (and not allied), then give up. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
property
xezon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this change not also fix errors in Generals/Code/GameEngine/Inlcude like the Zero Hour change does?
I was trying to keep files changed below 100 - I added the changes that Zero Hour (2146) does here it was only 16 more files. |
Fix spelling errors in code comments.